<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        /*   function App() {
              this.a = '胡可豪吊毛'
          }
          App.prototype.f = function () {
  
          }
          let o = new App()  */
        class Gou {
            constructor() {
                this.a = '胡克豪老六'
            }
            f() {
                console.log('把手机藏起来');
            }
        }
        class Zi extends Gou {
            constructor() {
                super()
                this.b = '真·老六'
            }
            f() {
                console.log('真的是老六');
            }
        }
        const z = new Gou()
        console.log(z);
        z.f()
    </script>
</body>

</html>